//
//  Calculations_on_a_CPU.m
//  Metal-Master
//
//  Created by 杨冰冰 on 2020/6/15.
//  Copyright © 2020 杨冰冰. All rights reserved.
//

#import "Calculations_on_a_CPU.h"
#import "MetalAdder.h"
@interface Calculations_on_a_CPU ()
@property (nonatomic, strong) MetalAdder *addr;
@property (nonatomic, strong) CAShapeLayer *shapeLayer;
@end

@implementation Calculations_on_a_CPU

- (void)viewDidLoad {
    //device
    id <MTLDevice> device = MTLCreateSystemDefaultDevice();
    //metal obj,尽量避免多次创建,会影响性能
    MetalAdder *adder = [[MetalAdder alloc] initWithDevice:device];
    
    _addr = adder;
    
    [adder verifyResultes];
}
@end
